﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="M_UpdatePassWord.aspx.cs" Inherits="M_UpdatePassWord" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>用户密码修改</title>
    <script src="js/jquery.easyui/jquery.min.js" type="text/javascript"></script>
    <link href="css/admin.css" rel="stylesheet" type="text/css" />
    <script src="js/js.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="div_Title" style = "height:70px;">
    <span class="Body_Title" style = "padding:10px;">》》<%=this.Title %></span>
    <div style = "padding:10px;">
        <span class="Body_Title">当前修改密码用户：<span ><%=Session["UserName"] == null ? "未登录" : Session["UserName"].ToString() %></span></span>
    </div>
    </div>
    <div class="divBody">
        <table class="Admin_Table">
            <tr>
                <td align="right">原密码:</td>
                <td><asp:TextBox ID="txtOrignalPassWord" runat="server"  Width="500px" TextMode = "Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtOrignalPassWord" ErrorMessage="*" ValidationGroup="Complete"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">新密码:</td>
                <td><asp:TextBox ID="txtNewPassWord" runat="server" Width="500px"  TextMode = "Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtNewPassWord" ErrorMessage="*" ValidationGroup="Complete"></asp:RequiredFieldValidator>
                  </td>
            </tr>
            <tr>
                <td align="right">确认新密码:</td>
                <td><asp:TextBox ID="txtReNewPassWord" runat="server" Width="500px" TextMode = "Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtReNewPassWord" ErrorMessage="*" ValidationGroup="Complete"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator2" runat="server"  ControlToCompare = "txtNewPassWord"
                        ErrorMessage="两次密码输入不一致!" ControlToValidate="txtReNewPassWord"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td colspan = "2">
                    <asp:Button ID = "btnComplete" runat = "server" Text = "提交" 
                        ValidationGroup = "Complete" onclick="btnComplete_Click" />
                </td>
            </tr>
        </table>
        </div>
    </form>
</body>
</html>
